require(['./config'],()=>{
    require(['template','url','header','footer'],(template,url)=>{
        class list {
            constructor(){
                this.renderList()
            }
            renderList(){
               //请求rap2假数据
               $.get(url.base+'/list',resp=>{
                   console.log(resp)
               if(resp.code===200){
                   const {array}=resp.body
                   $('#main_pic').html(template('templateList',{list:array})) 
               }
               })
            }
        }
        new list()
    })

})